// eslint-disable-next-line
// @ts-ignore:next-line
import translation from "./trans.zh.json"
const trans: { [key: string]: string } = translation
const lang = "en"
const untranslated: typeof trans = {}
export const tr = (s: string): string => {
    // if (lang == "en") {
    //     return s
    // }
    if (trans[s] != null && trans[s] !== "") {
        return trans[s]
    } else {
        untranslated[s] = ""
        return s
    }
}

window.setInterval(() => {
    console.log(JSON.stringify(untranslated, null, 4))

}, 3000)
